package com.dao.purchase; 

import com.model.purchase.PurchaseSixCostsOrdersModel;

import java.sql.SQLException;
import java.util.List; 
import java.util.Map; 
import org.apache.ibatis.annotations.Param; 

public interface PurchaseSixCostsOrdersDao  {

	/**
	 * 新增
	 * 
	 * @author chenjun
	 * @date 2022/03/10
	 **/
	int insert(PurchaseSixCostsOrdersModel sixCostsOrdersModel);

	
	int deleteByPurId(String purId);
	
	List<PurchaseSixCostsOrdersModel> selectByPurId(String purId);
	
	/**
	 * 刪除
	 * 
	 * @author chenjun
	 * @date 2022/03/10
	 **/
	int delete(@Param("purId")String purId);

	/**
	 * 更新
	 * 
	 * @author chenjun
	 * @date 2022/03/10
	 **/
	int update(PurchaseSixCostsOrdersModel sixCostsOrdersModel);

	/**
	 * 查询 根据主键 id 查询
	 * 
	 * @author chenjun
	 * @date 2022/03/10
	 **/
	PurchaseSixCostsOrdersModel load(@Param("purId")String purId);


	// 列表
	List<PurchaseSixCostsOrdersModel> selectList(Map<String, Object> map);

	// 列表总数
	int selectListCount(Map<String, Object> map);
 }